@white: #FFF;

.login {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('http://cowcdn.oss-cn-hangzhou.aliyuncs.com/dsp/img/logoBg.png') no-repeat 50% 50%;
  background-size: 65%;
  .mb5 {
    margin-bottom: 5px;
  }

  .mr10 {
    margin-right: 10px;
  }

  .fr {
    float: right;
  }

  .loginTitle {
    margin-bottom: 24px;
    text-align: center;
  }

  .block {
    width: 100%;
  }

  .sigin, .forget, .register {
    position: relative;
    width: 500px;
    padding: 40px 60px;
    border: 1px solid #ccc;
    background-color: @white;
    border-radius: 5px;
    .loginLogo {
      position: absolute;
      top: -70px;
      left: 50%;
      transform: translateX(-50%);
    }
  }
  .forget {
    padding: 40px 60px 40px 15px;
  }
}

.pt15 {
  padding-top: 15px;
  background: url('http://cowcdn.oss-cn-hangzhou.aliyuncs.com/dsp/img/logoBg.png') no-repeat 50% 50%;
  background-size: 65%;
  height: 100%;
  .loginLogo {
    text-align: center;
    margin-bottom: 20px;
  }
}

.register {
  width: 500px;
  margin: 0 auto;
  padding: 40px 60px;
  border: 1px solid #ccc;
  background-color: @white;
  border-radius: 5px;
  .mr10 {
    margin-right: 10px;
  }
  .mb5 {
    margin-bottom: 5px;
  }
  .loginTitle {
    text-align: center;
    margin-bottom: 15px;
  }
  :global {
    .ant-form-item {
      margin-bottom: 15px;
    }
    .ant-upload.ant-upload-select-picture-card {
      width: 100%;
      height: 96px;
    }
    .ant-upload-list-picture-card .ant-upload-list-item {
      width: 100%;
      height: 96px;
    }
  }
}

.agreement {
  background-color: #eee;
  padding: 40px 20px;
  .write {
    margin: 0px auto;
    height: auto;
    width: inherit;
    word-break: normal;
    word-wrap: break-word;
    position: relative;
    padding-bottom: 70px;
    white-space: pre-wrap;
    background-color: #fff;
    h1 {
      text-align: center;
    }
    .back {
    }
  }

  .write > p:first-child, .write > ul:first-child, .write > ol:first-child, .write > pre:first-child, .write > blockquote:first-child, .write > div:first-child, .write > table:first-child {
    margin-top: 30px;
  }
  .write li > table:first-child {
    margin-top: -20px;
  }

  .write {
    max-width: 860px;
    padding: 20px 30px 40px 30px;
    padding-top: 20px;
    padding-bottom: 100px;
  }
  .write > ul:first-child,
  .write > ol:first-child {
    margin-top: 30px;
  }

  body > *:first-child {
    margin-top: 0 !important;
  }
  body > *:last-child {
    margin-bottom: 0 !important;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    cursor: text;
  }
  h1:hover a.anchor,
  h2:hover a.anchor,
  h3:hover a.anchor,
  h4:hover a.anchor,
  h5:hover a.anchor,
  h6:hover a.anchor {
    /*background: url("file:///Users/nnecec/Library/Application%20Support/images/modules/styleguide/para.png") no-repeat 10px center;*/
    text-decoration: none;
  }
  h1 {
    padding-bottom: .3em;
    font-size: 2.25em;
    line-height: 1.2;
    border-bottom: 1px solid #eee;
  }
  h2 {
    padding-bottom: .3em;
    font-size: 1.75em;
    line-height: 1.225;
    border-bottom: 1px solid #eee;
  }
  h3 {
    font-size: 1.5em;
    line-height: 1.43;
  }
  h4 {
    font-size: 1.25em;
  }
  h5 {
    font-size: 1em;
  }
  h6 {
    font-size: 1em;
    color: #777;
  }
  p,
  blockquote,
  ul,
  ol,
  dl,
  table {
    margin: 0.8em 0;
    line-height: 1.5;
  }
  li > ol,
  li > ul {
    margin: 0 0;
  }

  body > h2:first-child {
    margin-top: 0;
    padding-top: 0;
  }
  body > h1:first-child {
    margin-top: 0;
    padding-top: 0;
  }
  body > h1:first-child + h2 {
    margin-top: 0;
    padding-top: 0;
  }
  body > h3:first-child,
  body > h4:first-child,
  body > h5:first-child,
  body > h6:first-child {
    margin-top: 0;
    padding-top: 0;
  }
  a:first-child h1,
  a:first-child h2,
  a:first-child h3,
  a:first-child h4,
  a:first-child h5,
  a:first-child h6 {
    margin-top: 0;
    padding-top: 0;
  }
  h1 p,
  h2 p,
  h3 p,
  h4 p,
  h5 p,
  h6 p {
    margin-top: 0;
  }
  li p.first {
    display: inline-block;
  }
  ul,
  ol {
    padding-left: 30px;
  }
  ol {
    list-style-type: decimal;
  }
  ul:first-child,
  ol:first-child {
    margin-top: 0;
  }
  ul:last-child,
  ol:last-child {
    margin-bottom: 0;
  }
}
